<% for name in [:notice, :warning] -%>
  <% if flash[name] -%>
  <div class="flash">
    <%= "<div id=\"flash_#{name}\">#{l(flash[name])}</div>" %>
  </div>
  <% end -%>
<% end -%>
